package com.hxzy.config;

import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
import com.baomidou.mybatisplus.extension.plugins.inner.OptimisticLockerInnerInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author wy
 * @Description TODO
 * @Date 2023/9/11 11:30
 * @Version 1.0
 */
@Configuration
@MapperScan(basePackages = "com.hxzy.mapper")
public class MybatisPlusConfig {



//    @Bean
//    public MybatisPlusInterceptor mybatisPlusInterceptor() {
//
////        // 乐观锁的插件
////        MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
////        interceptor.addInnerInterceptor(new OptimisticLockerInnerInterceptor());
////        return interceptor;
//    }
}
